﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using YouWei.Infrastructure.Entity;
using YouWei.Infrastructure.Enums;

namespace YouWei.Infrastructure.Models
{
    public class SmsTaskDto: SmsTask
    {
        /// <summary>
        /// 状态
        /// </summary>
        public string StatusTxt
        {
            get
            {
                return Utility.EnumHelper.GetEnumDesc(typeof(SmsTaskStatusEnum), Status);
            }
        }

        /// <summary>
        /// 开始时间
        /// </summary>
        public string StartDateTxt
        {
            get {
                return StartDate.ToString("yyyy-MM-dd");
            }
        }

        /// <summary>
        /// 结束时间
        /// </summary>
        public string EndDateTxt
        {
            get
            {
                return EndDate.ToString("yyyy-MM-dd");
            }
        }
    }
}